package com.iqiyi.pps.epg.core.model.statistic;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by zhang on 2016/3/4.
 */
@Entity
@Table(name = "st_detail_data")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class StatisticDetailData {

    private long id;
    private String channelId;
    private String categoryName;
    private int userActionCount;
    private int systemInfoCount;
    private String user;
    private Timestamp statisticTime;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name="channel_id")
    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    @Column(name="category_name")
    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    @Column(name="user_action_count")
    public int getUserActionCount() {
        return userActionCount;
    }

    public void setUserActionCount(int userActionCount) {
        this.userActionCount = userActionCount;
    }

    @Column(name="system_info_count")
    public int getSystemInfoCount() {
        return systemInfoCount;
    }

    public void setSystemInfoCount(int systemInfoCount) {
        this.systemInfoCount = systemInfoCount;
    }

    @Column(name = "user")
    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @Column(name="st_time")
    public Timestamp getStatisticTime() {
        return statisticTime;
    }

    public void setStatisticTime(Timestamp statisticTime) {
        this.statisticTime = statisticTime;
    }
}
